package com.shop.service;


import com.shop.entity.User;
import com.shop.exception.*;

public interface UserService {
    String register(User user) throws DAOException, UserExistException, UserNotExistException;

    User login(String username, String password) throws UserNotExistException, DAOException;

    User selectUserInformationById(int user_id) throws UserNotExistException, DAOException;

    void updateUserInformation(User user, int u_id) throws UserInformationChangeException, DAOException;

    void changeUserHeadImg(String id, String url);

    void changePwd(String old_pwd, String new_pwd, String a_new_pwd, String u_id) throws changePwdException, DAOException;
}
